package com.pilipili.zeus.eduService.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.pilipili.zeus.eduService.entity.EduCourse;
import com.pilipili.zeus.eduService.entity.vo.*;
import org.springframework.web.multipart.MultipartFile;

import java.util.Map;

/**
 * 番剧 服务类
 *
 * @author Unlimited_Blade_Works
 * @since 2021-05-26
 */
public interface EduCourseService extends IService<EduCourse> {

    String saveCourseInfo(CourseInfo courseInfo);

    CourseInfo getCourseInfo(String courseId);

    void updateCourseInfo(CourseInfo courseInfo);

    Publish getPublishCourseInfo(String courseId);

    void pageQuery(Page<EduCourse> page, QueryCourse query);

    void removeCourse(String courseId);

    Map<String, Object> getCourseList(Page<EduCourse> page, CourseQuery courseQuery);

    CourseFront getChapterVideoById(String courseId);

    void saveCourseDataByExcel(MultipartFile file, EduCourseService courseService);

    Map<String, Object> getSortCourseInfo(IPage<SortCourse> page,String sortId);
}
